% Prompt the user for a number and print the sqrt of it.
num=input('please input a number:');
% If the user inputs a negative number,tell him/her and change it.
if num<0
    disp('OK,we''ll print the absolute value')
    num=abs(num);
end
fprintf('The sqrt of %f is %f \n',num ,sqrt(num))
